package net.gz01.wallet.web.controller.merch;


import java.util.List;

import net.gz01.wallet.web.controller.BaseController;
import net.gz01.wallet.web.model.Account;
import net.gz01.wallet.web.model.MerchUser;

public class AccountController extends BaseController{

	public void search(){
		MerchUser merchUser = (MerchUser) getSession().getAttribute("loginMerchUser");
		Object[] accountNo = {merchUser.getMerchCode()};
		List<Account> accountList = Account.dao.selectByAccountNo(accountNo);
		setAttr("account", accountList.get(0));
		render("account/accountList.html");
	}

}
